#!/bin/sh
# Updated by Wei on 20141026
# Usage:
# ./scriptForRunningOnlinePoppingProcess_ForJuan_GOV2.sh unigramFromWei ptChangedFromJuan_ptPowTo1 
# $1: identifier for unigram or bigram
# $1 == "unigramFromWei": unigram from Wei
# $1 == "$1": bigram from Juan

# $2: identifier for a specifc folder and file
# e.g. $2 == "ptChangedFromJuan_ptPowToDot7"

# $3: value for dyanmic weight
# NO USE FOR bigram
# important use FOR unigram

echo "3 arguments needed"
echo $1
echo $2
echo $3

#echo "./irtk --local --cat < commandValue --config-options=document_posting_values_output_file_name_binary=/san_data/research/wei/workspace/NYU_IRTK/data/Clueweb09B/clueweb09B/unigramDocumentPostingArray/LEAVE_documentPostingArray_clueweb09B_0M_2M.binary\;all_postings_being_popped_file_prefix_name_binary=/home/vgc/wei/workspace/NYU_IRTK/results/$1/clueweb09B/subPostingPopped_$2_$3_0M_2M\;dynamic_weight=$3\;both_collection_lower_bound=0\;both_collection_upper_bound=2000000\;"
#exit

./irtk --local --cat < commandValue --config-options=document_posting_values_output_file_name_binary=/san_data/research/wei/workspace/NYU_IRTK/data/Clueweb09B/clueweb09B/unigramDocumentPostingArray/LEAVE_documentPostingArray_clueweb09B_0M_2M.binary\;all_postings_being_popped_file_prefix_name_binary=/home/vgc/wei/workspace/NYU_IRTK/results/$1/clueweb09B/subPostingPopped_$2_$3_0M_1M\;dynamic_weight=$3\;both_collection_lower_bound=0\;both_collection_upper_bound=2000000\; > onlineSubPostingPopping_$2_$3_0M_2M_LOG_20141116&

./irtk --local --cat < commandValue --config-options=document_posting_values_output_file_name_binary=/san_data/research/wei/workspace/NYU_IRTK/data/Clueweb09B/clueweb09B/unigramDocumentPostingArray/LEAVE_documentPostingArray_clueweb09B_2M_4M.binary\;all_postings_being_popped_file_prefix_name_binary=/home/vgc/wei/workspace/NYU_IRTK/results/$1/clueweb09B/subPostingPopped_$2_$3_1M_2M\;dynamic_weight=$3\;both_collection_lower_bound=2000000\;both_collection_upper_bound=4000000\; > onlineSubPostingPopping_$2_$3_2M_4M_LOG_20141116&

./irtk --local --cat < commandValue --config-options=document_posting_values_output_file_name_binary=/san_data/research/wei/workspace/NYU_IRTK/data/Clueweb09B/clueweb09B/unigramDocumentPostingArray/LEAVE_documentPostingArray_clueweb09B_4M_6M.binary\;all_postings_being_popped_file_prefix_name_binary=/home/vgc/wei/workspace/NYU_IRTK/results/$1/clueweb09B/subPostingPopped_$2_$3_2M_3M\;dynamic_weight=$3\;both_collection_lower_bound=4000000\;both_collection_upper_bound=6000000\; > onlineSubPostingPopping_$2_$3_4M_6M_LOG_20141116&

./irtk --local --cat < commandValue --config-options=document_posting_values_output_file_name_binary=/san_data/research/wei/workspace/NYU_IRTK/data/Clueweb09B/clueweb09B/unigramDocumentPostingArray/LEAVE_documentPostingArray_clueweb09B_6M_8M.binary\;all_postings_being_popped_file_prefix_name_binary=/home/vgc/wei/workspace/NYU_IRTK/results/$1/clueweb09B/subPostingPopped_$2_$3_3M_4M\;dynamic_weight=$3\;both_collection_lower_bound=6000000\;both_collection_upper_bound=8000000\; > onlineSubPostingPopping_$2_$3_6M_8M_LOG_20141116&

./irtk --local --cat < commandValue --config-options=document_posting_values_output_file_name_binary=/san_data/research/wei/workspace/NYU_IRTK/data/Clueweb09B/clueweb09B/unigramDocumentPostingArray/LEAVE_documentPostingArray_clueweb09B_8M_10M.binary\;all_postings_being_popped_file_prefix_name_binary=/home/vgc/wei/workspace/NYU_IRTK/results/$1/clueweb09B/subPostingPopped_$2_$3_4M_5M\;dynamic_weight=$3\;both_collection_lower_bound=8000000\;both_collection_upper_bound=10000000\; > onlineSubPostingPopping_$2_$3_8M_10M_LOG_20141116&

./irtk --local --cat < commandValue --config-options=document_posting_values_output_file_name_binary=/san_data/research/wei/workspace/NYU_IRTK/data/Clueweb09B/clueweb09B/unigramDocumentPostingArray/LEAVE_documentPostingArray_clueweb09B_10M_12M.binary\;all_postings_being_popped_file_prefix_name_binary=/home/vgc/wei/workspace/NYU_IRTK/results/$1/clueweb09B/subPostingPopped_$2_$3_5M_6M\;dynamic_weight=$3\;both_collection_lower_bound=10000000\;both_collection_upper_bound=12000000\; > onlineSubPostingPopping_$2_$3_10M_12M_LOG_20141116&

./irtk --local --cat < commandValue --config-options=document_posting_values_output_file_name_binary=/san_data/research/wei/workspace/NYU_IRTK/data/Clueweb09B/clueweb09B/unigramDocumentPostingArray/LEAVE_documentPostingArray_clueweb09B_12M_14M.binary\;all_postings_being_popped_file_prefix_name_binary=/home/vgc/wei/workspace/NYU_IRTK/results/$1/clueweb09B/subPostingPopped_$2_$3_6M_7M\;dynamic_weight=$3\;both_collection_lower_bound=12000000\;both_collection_upper_bound=14000000\; > onlineSubPostingPopping_$2_$3_12M_14M_LOG_20141116&

./irtk --local --cat < commandValue --config-options=document_posting_values_output_file_name_binary=/san_data/research/wei/workspace/NYU_IRTK/data/Clueweb09B/clueweb09B/unigramDocumentPostingArray/LEAVE_documentPostingArray_clueweb09B_14M_16M.binary\;all_postings_being_popped_file_prefix_name_binary=/home/vgc/wei/workspace/NYU_IRTK/results/$1/clueweb09B/subPostingPopped_$2_$3_7M_8M\;dynamic_weight=$3\;both_collection_lower_bound=14000000\;both_collection_upper_bound=16000000\; > onlineSubPostingPopping_$2_$3_14M_16M_LOG_20141116&

./irtk --local --cat < commandValue --config-options=document_posting_values_output_file_name_binary=/san_data/research/wei/workspace/NYU_IRTK/data/Clueweb09B/clueweb09B/unigramDocumentPostingArray/LEAVE_documentPostingArray_clueweb09B_16M_18M.binary\;all_postings_being_popped_file_prefix_name_binary=/home/vgc/wei/workspace/NYU_IRTK/results/$1/clueweb09B/subPostingPopped_$2_$3_8M_9M\;dynamic_weight=$3\;both_collection_lower_bound=16000000\;both_collection_upper_bound=18000000\; > onlineSubPostingPopping_$2_$3_16M_18M_LOG_20141116&

./irtk --local --cat < commandValue --config-options=document_posting_values_output_file_name_binary=/san_data/research/wei/workspace/NYU_IRTK/data/Clueweb09B/clueweb09B/unigramDocumentPostingArray/LEAVE_documentPostingArray_clueweb09B_18M_20M.binary\;all_postings_being_popped_file_prefix_name_binary=/home/vgc/wei/workspace/NYU_IRTK/results/$1/clueweb09B/subPostingPopped_$2_$3_9M_10M\;dynamic_weight=$3\;both_collection_lower_bound=18000000\;both_collection_upper_bound=200000000\; > onlineSubPostingPopping_$2_$3_18M_20M_LOG_20141116&

./irtk --local --cat < commandValue --config-options=document_posting_values_output_file_name_binary=/san_data/research/wei/workspace/NYU_IRTK/data/Clueweb09B/clueweb09B/unigramDocumentPostingArray/LEAVE_documentPostingArray_clueweb09B_20M_22M.binary\;all_postings_being_popped_file_prefix_name_binary=/home/vgc/wei/workspace/NYU_IRTK/results/$1/clueweb09B/subPostingPopped_$2_$3_10M_11M\;dynamic_weight=$3\;both_collection_lower_bound=20000000\;both_collection_upper_bound=22000000\; > onlineSubPostingPopping_$2_$3_20M_22M_LOG_20141116&

./irtk --local --cat < commandValue --config-options=document_posting_values_output_file_name_binary=/san_data/research/wei/workspace/NYU_IRTK/data/Clueweb09B/clueweb09B/unigramDocumentPostingArray/LEAVE_documentPostingArray_clueweb09B_22M_24M.binary\;all_postings_being_popped_file_prefix_name_binary=/home/vgc/wei/workspace/NYU_IRTK/results/$1/clueweb09B/subPostingPopped_$2_$3_11M_12M\;dynamic_weight=$3\;both_collection_lower_bound=22000000\;both_collection_upper_bound=24000000\; > onlineSubPostingPopping_$2_$3_22M_24M_LOG_20141116&

./irtk --local --cat < commandValue --config-options=document_posting_values_output_file_name_binary=/san_data/research/wei/workspace/NYU_IRTK/data/Clueweb09B/clueweb09B/unigramDocumentPostingArray/LEAVE_documentPostingArray_clueweb09B_24M_25M.binary\;all_postings_being_popped_file_prefix_name_binary=/home/vgc/wei/workspace/NYU_IRTK/results/$1/clueweb09B/subPostingPopped_$2_$3_12M_13M\;dynamic_weight=$3\;both_collection_lower_bound=24000000\;both_collection_upper_bound=25000000\; > onlineSubPostingPopping_$2_$3_24M_25M_LOG_20141116&

./irtk --local --cat < commandValue --config-options=document_posting_values_output_file_name_binary=/san_data/research/wei/workspace/NYU_IRTK/data/Clueweb09B/clueweb09B/unigramDocumentPostingArray/LEAVE_documentPostingArray_clueweb09B_25M_27M.binary\;all_postings_being_popped_file_prefix_name_binary=/home/vgc/wei/workspace/NYU_IRTK/results/$1/clueweb09B/subPostingPopped_$2_$3_13M_14M\;dynamic_weight=$3\;both_collection_lower_bound=25000000\;both_collection_upper_bound=27000000\; > onlineSubPostingPopping_$2_$3_25M_27M_LOG_20141116&

./irtk --local --cat < commandValue --config-options=document_posting_values_output_file_name_binary=/san_data/research/wei/workspace/NYU_IRTK/data/Clueweb09B/clueweb09B/unigramDocumentPostingArray/LEAVE_documentPostingArray_clueweb09B_27M_29M.binary\;all_postings_being_popped_file_prefix_name_binary=/home/vgc/wei/workspace/NYU_IRTK/results/$1/clueweb09B/subPostingPopped_$2_$3_14M_15M\;dynamic_weight=$3\;both_collection_lower_bound=27000000\;both_collection_upper_bound=29000000\; > onlineSubPostingPopping_$2_$3_27M_29M_LOG_20141116&

./irtk --local --cat < commandValue --config-options=document_posting_values_output_file_name_binary=/san_data/research/wei/workspace/NYU_IRTK/data/Clueweb09B/clueweb09B/unigramDocumentPostingArray/LEAVE_documentPostingArray_clueweb09B_29M_31M.binary\;all_postings_being_popped_file_prefix_name_binary=/home/vgc/wei/workspace/NYU_IRTK/results/$1/clueweb09B/subPostingPopped_$2_$3_15M_16M\;dynamic_weight=$3\;both_collection_lower_bound=29000000\;both_collection_upper_bound=31000000\; > onlineSubPostingPopping_$2_$3_29M_31M_LOG_20141116&

./irtk --local --cat < commandValue --config-options=document_posting_values_output_file_name_binary=/san_data/research/wei/workspace/NYU_IRTK/data/Clueweb09B/clueweb09B/unigramDocumentPostingArray/LEAVE_documentPostingArray_clueweb09B_31M_33M.binary\;all_postings_being_popped_file_prefix_name_binary=/home/vgc/wei/workspace/NYU_IRTK/results/$1/clueweb09B/subPostingPopped_$2_$3_16M_17M\;dynamic_weight=$3\;both_collection_lower_bound=31000000\;both_collection_upper_bound=33000000\; > onlineSubPostingPopping_$2_$3_31M_33M_LOG_20141116&

./irtk --local --cat < commandValue --config-options=document_posting_values_output_file_name_binary=/san_data/research/wei/workspace/NYU_IRTK/data/Clueweb09B/clueweb09B/unigramDocumentPostingArray/LEAVE_documentPostingArray_clueweb09B_33M_35M.binary\;all_postings_being_popped_file_prefix_name_binary=/home/vgc/wei/workspace/NYU_IRTK/results/$1/clueweb09B/subPostingPopped_$2_$3_17M_18M\;dynamic_weight=$3\;both_collection_lower_bound=33000000\;both_collection_upper_bound=35000000\; > onlineSubPostingPopping_$2_$3_33M_35M_LOG_20141116&

./irtk --local --cat < commandValue --config-options=document_posting_values_output_file_name_binary=/san_data/research/wei/workspace/NYU_IRTK/data/Clueweb09B/clueweb09B/unigramDocumentPostingArray/LEAVE_documentPostingArray_clueweb09B_35M_37M.binary\;all_postings_being_popped_file_prefix_name_binary=/home/vgc/wei/workspace/NYU_IRTK/results/$1/clueweb09B/subPostingPopped_$2_$3_18M_19M\;dynamic_weight=$3\;both_collection_lower_bound=35000000\;both_collection_upper_bound=37000000\; > onlineSubPostingPopping_$2_$3_35M_37M_LOG_20141116&

./irtk --local --cat < commandValue --config-options=document_posting_values_output_file_name_binary=/san_data/research/wei/workspace/NYU_IRTK/data/Clueweb09B/clueweb09B/unigramDocumentPostingArray/LEAVE_documentPostingArray_clueweb09B_37M_39M.binary\;all_postings_being_popped_file_prefix_name_binary=/home/vgc/wei/workspace/NYU_IRTK/results/$1/clueweb09B/subPostingPopped_$2_$3_19M_20M\;dynamic_weight=$3\;both_collection_lower_bound=37000000\;both_collection_upper_bound=39000000\; > onlineSubPostingPopping_$2_$3_37M_39M_LOG_20141116&

./irtk --local --cat < commandValue --config-options=document_posting_values_output_file_name_binary=/san_data/research/wei/workspace/NYU_IRTK/data/Clueweb09B/clueweb09B/unigramDocumentPostingArray/LEAVE_documentPostingArray_clueweb09B_39M_41M.binary\;all_postings_being_popped_file_prefix_name_binary=/home/vgc/wei/workspace/NYU_IRTK/results/$1/clueweb09B/subPostingPopped_$2_$3_20M_21M\;dynamic_weight=$3\;both_collection_lower_bound=39000000\;both_collection_upper_bound=41000000\; > onlineSubPostingPopping_$2_$3_39M_41M_LOG_20141116&

./irtk --local --cat < commandValue --config-options=document_posting_values_output_file_name_binary=/san_data/research/wei/workspace/NYU_IRTK/data/Clueweb09B/clueweb09B/unigramDocumentPostingArray/LEAVE_documentPostingArray_clueweb09B_41M_43M.binary\;all_postings_being_popped_file_prefix_name_binary=/home/vgc/wei/workspace/NYU_IRTK/results/$1/clueweb09B/subPostingPopped_$2_$3_21M_22M\;dynamic_weight=$3\;both_collection_lower_bound=41000000\;both_collection_upper_bound=43000000\; > onlineSubPostingPopping_$2_$3_41M_43M_LOG_20141116&

./irtk --local --cat < commandValue --config-options=document_posting_values_output_file_name_binary=/san_data/research/wei/workspace/NYU_IRTK/data/Clueweb09B/clueweb09B/unigramDocumentPostingArray/LEAVE_documentPostingArray_clueweb09B_43M_45M.binary\;all_postings_being_popped_file_prefix_name_binary=/home/vgc/wei/workspace/NYU_IRTK/results/$1/clueweb09B/subPostingPopped_$2_$3_22M_23M\;dynamic_weight=$3\;both_collection_lower_bound=43000000\;both_collection_upper_bound=45000000\; > onlineSubPostingPopping_$2_$3_43M_45M_LOG_20141116&

./irtk --local --cat < commandValue --config-options=document_posting_values_output_file_name_binary=/san_data/research/wei/workspace/NYU_IRTK/data/Clueweb09B/clueweb09B/unigramDocumentPostingArray/LEAVE_documentPostingArray_clueweb09B_45M_47M.binary\;all_postings_being_popped_file_prefix_name_binary=/home/vgc/wei/workspace/NYU_IRTK/results/$1/clueweb09B/subPostingPopped_$2_$3_23M_24M\;dynamic_weight=$3\;both_collection_lower_bound=45000000\;both_collection_upper_bound=47000000\; > onlineSubPostingPopping_$2_$3_45M_47M_LOG_20141116&

./irtk --local --cat < commandValue --config-options=document_posting_values_output_file_name_binary=/san_data/research/wei/workspace/NYU_IRTK/data/Clueweb09B/clueweb09B/unigramDocumentPostingArray/LEAVE_documentPostingArray_clueweb09B_47M_END.binary\;all_postings_being_popped_file_prefix_name_binary=/home/vgc/wei/workspace/NYU_IRTK/results/$1/clueweb09B/subPostingPopped_$2_$3_24M_25M\;dynamic_weight=$3\;both_collection_lower_bound=47000000\;both_collection_upper_bound=50220423\; > onlineSubPostingPopping_$2_$3_47M_END_LOG_20141116&

